﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;
//using simpleHotel.Data;

namespace simpleHotel.Web.UserControls
{
    public partial class ucPromotions : System.Web.UI.UserControl
    {
        List<Promotion> lstPromotion = new List<Promotion>();
        ObjPromotions obj = new ObjPromotions();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetData();
            }
        }
        private void GetData()
        {
            dlPromotion.DataSource = obj.getPromotion().ToList();
            dlPromotion.DataBind();
        }
    }
}